home *** CD-ROM | disk | FTP | other *** search
/ MacAddict 108 / MacAddict108.iso / Software / Internet & Communication / Concierge 1.3.5.dmg / Install Concierge.pkg / Contents / Resources / VolumeCheck < prev   
Encoding:
Text File  |  2004-11-12  |  595 b   |  25 lines

  1. #!/bin/bash
  2.  
  3. # VolumeCheck - installation phase for Concierge
  4. #
  5. # $1 contains the path to the volume to check
  6. # $PACKAGE_PATH is the full path to the installation package
  7.  
  8. libDirectory="$1/Library"
  9. returnValue=0
  10.  
  11. if (test -d "$libDirectory") then
  12.     # Toplevel Library directory found; return zero to installer
  13.     returnValue=0
  14. else
  15.     # The volume does not contain a toplevel Library directory
  16.     
  17.     # Disallow the volume by setting the action bit
  18.     returnValue=$((1<<5))
  19.     
  20.     # Specify message #16 to display to the user for this disallowed volume
  21.     # returnValue=$((returnValue|16))
  22. fi
  23.  
  24. exit $returnValue
  25.